package oop2;

/**
 * @author oldliu
 * @since 1.0
 */
public class PhoneTest {
    public static void main(String[] args) {
        CellPhone phone = new CellPhone();
        phone.brand = "爱疯16 promax";
        phone.price = 11999;
        phone.color = "玫瑰金";
        //System.out.println(phone.c);
        //1：
//        phone.c = new Cell();
//        phone.c.brand = "苹果原装电池";
//        phone.c.cap = 4000;
        //2：
//        Cell d = new Cell();
//        d.brand = "飞毛腿电池";
//        d.cap = 10000;
//        phone.c = d;//安装

        //3:直接在对象中创建
        phone.c.brand = "苹果原装电池";
        phone.c.cap = 800;
        phone.jieshao();
    }
}
